<template>
  <el-row :gutter="20">
  
        <div class="text item">
          <el-form :model="form" label-width="120px"> 
            <el-form-item label="上传插件">
              <el-upload
                class="avatar-uploader"
                action="http://real-think.jmwl51.com//admin/Ajaxs/upload"
                :show-file-list="false"
                :on-success="handleAvatarSuccess"
                :before-upload="beforeAvatarUpload"
              >
                <img v-if="form.addons" :src="form.addons" class="avatar" />
                <el-icon v-else class="avatar-uploader-icon"><Plus /></el-icon>
              </el-upload>
            </el-form-item>
            <el-form-item>
              <el-button type="primary" @click="onSubmit">修改</el-button>
            </el-form-item>
          </el-form>
        </div> 
   
 
  </el-row>
</template>


 
  
<script>
import JmInput from "../../components/form/JmInput.vue";
import JmEnum from "../../components/form/JmEnum.vue";
export default {
  components: { JmInput, JmEnum },
  data() {
    return {
      form: {
        addons: {},
       
      },
    };
  },

  mounted() {
    this.getDataList();
  },
  methods: {
    // 配置信息列表初始化
    async getDataList() {
      try {
 

      } catch (error) {
        /*console.error(error);*/
      }
    },
    onSubmit() {
      //  console.log(this.form);
      const res = this.$api.setConfigList(this.form);

      console.log(res);
    },
  },
};
</script>
  
<style >
 
.el-dialog__header {
  box-shadow: 0px 5px 10px #a5a5a5;
  background: #001529;
  color: white;
}
.el-dialog__headerbtn .el-dialog__close,
.el-dialog__title {
  color: white;
}
</style>